import Container from "@/container";

const informationRouter = {
  path: "/informationManage",
  component: Container,
  redirect: "noRedirect",
  name: "informationManage",
  meta: {
    permitIds: ["info"],
    title: "信息发布",
    icon: "tb_04.png"
  },
  children: [
    {
      path: "/communityNotice",
      name: "communityNotice",
      meta: {
        parentTitle: "信息发布",
        title: "公告",
        index: "4-1",
        permitIds: ["info_announ"]
      },
      component: () => import("@/pages/information/community_notice")
    },
    {
      path: "/addNotice",
      name: "addNotice",
      meta: {
        parentTitle: "信息发布",
        title: "新增公告",
        hasGoBack: true,
        permitIds: ["info_announ_add"]
      },
      component: () => import("@/pages/information/community_notice/add_notice")
    },
    {
      path: "/detailNotice",
      name: "detailNotice",
      meta: {
        parentTitle: "信息发布",
        title: "公告详情",
        hasGoBack: true,
        permitIds: ["info_announ_load"]
      },
      component: () =>
        import("@/pages/information/community_notice/detail_notice")
    },
    {
      path: "/editNotice",
      name: "editNotice",
      meta: {
        parentTitle: "信息发布",
        title: "编辑公告",
        hasGoBack: true,
        permitIds: ["info_announ_update"]
      },
      component: () =>
        import("@/pages/information/community_notice/edit_notice")
    }
  ]
};

export default informationRouter;
